<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>
</head>
<body>
<button>add</button>
<script type="text/javascript">
	$(function(){
		$("button").on("click",function(){
			var user={name:'tom', age:23, birth:'1999-9-9'};
			$.ajax({
				type:"POST",
				url:"test5",
				data:JSON.stringify(user),
				dataType:"json",
				contentType:"application/json"
			}).done(function(){
				alert(user.name+"\t"+new Date(user.birth));
			});
		})
	});
</script>
</body>
</html>